@import './main';
body,ul,ol,dl,dd,h1,h2,h3,h4,h5,h6,pre,form,fieldset,legend,input,button,textarea,p,blockquote,table,th,td,menu{margin:0;padding:0}
table{border-collapse:collapse;border-spacing:0;table-layout:fixed}
ul,ol,menu,li{list-style:none}
fieldset,img{border:none}
img,object,select,input,textarea,button{vertical-align:middle}
input,textarea,select,address,caption,cite,code,dfn,em,i,b,strong,small,th,var,abbr{font-size:100%;font-style:normal}
caption,th {text-align: left;}
article,aside,footer,header,hgroup,nav,section,figure,figcaption {display: block;}
code, kbd, pre, samp, tt { font-family: Consolas,"Courier New", Courier, monospace;}
address, cite, dfn, em, var,i {font-style: normal;}
blockquote, q {quotes: none;}
abbr[title], acronym[title] {border-bottom: 1px dotted;cursor: help;}
a {
  text-decoration:none;cursor: pointer;
  &:hover, &:focus { outline:none; }
}
html {height: 100%;}
body { width: 100%; height: 100%; font-size: 16px; }
#app{position: relative;width: 100%;height: 100%;}
* { box-sizing: border-box; }
i.iconfont {
  cursor: pointer;
}

  // 修改默认滚动条样式
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #5262be;
}
::-ms-clear,
::-ms-reveal {
  display: none;
}


// 修改element 默认样式

// loading样式
.route-container .el-loading-mask {
  background-color: rgba(0, 0, 0, 0.5);
}
.custom-load.el-loading-mask {
  background-color: rgba(0, 0, 0, 0.5);
}
.el-loading-parent--relative {
  .el-loading-mask {
    background-color: rgba(0, 0, 0, 0.5);
  }
}
// 按钮样式
.el-button {
  &.el-button--primary {
    background: $linearG;
    border: none;
    &:focus, &:hover {
      background: $lightLinearG;
      border: none;
    }
  }
  &.el-button--danger, .el-button--default {
    border: none;
    &:focus, &:hover {
      border: none;
    }
  }
  &.success.el-button--primary {
    background: $successBtn;
    border: none;
    &:focus, &:hover {
      background: $successBtnRgba;
      border: none;
    }
  }
}
// 下拉菜单
.environment-comp-drop {
  width: 380px;
}
// 地址浮层
.address-popper {
  height: 400px;
  overflow: auto;
}

// 菜单浮层（子菜单）
.menu-popper-custom.el-menu--horizontal {
  background-color: #0a1034;
  box-shadow: 0 0 4px 0 #0a1034;
  ul.el-menu {
    background-color: #0a1034;
    color: #fff;
    .el-submenu.is-active > .el-submenu__title {
      color: $mainColor;
    }
    .el-menu-item, .el-submenu__title {
      background-color: #0a1034;
      color: #fff;
      &:hover {
        color: $mainColor;
      }
    }
    .el-menu-item.is-active {
      color: $mainColor;
    }
  }
}

.route-view-container {
  .el-checkbox__input.is-checked .el-checkbox__inner,
  .el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: $successBtn;
    border-color: $successBtn;
  }
  .el-checkbox__input.is-checked:not(.is-disabled) +.el-checkbox__label {
    color: $successBtn;
  }
}

// 全局修改table样式
body > .el-dialog__wrapper {
  .el-table {
    background-color: $mainBg;
    color: #fff;
    th, tr {
      background-color: transparent;
    }
    td, th, th.is-leaf {
      border-bottom: none;
      color: $mainColor;
      span, label {
        color: #fff;
      }
    }
    .el-table__fixed {
      .el-table__fixed-header-wrapper {
        table {
          thead {
            font-size: 17px;
          }
          tr, th, td {
            color: $mainColor;
            @include baseBgRgba();
          }
          td, th {
            padding: 8px 0;
          }
        }
      }
    }
    .el-table__header-wrapper {
      border-radius: 10px;
      table {
        thead {
          font-size: 17px;
        }
        tr, th, td {
          color: $mainColor;
          @include baseBgRgba();
          //border-bottom: 1px solid $mainBorder;
        }
        td, th {
          padding: 8px 0;
        }
      }
    }
    .el-table__body {
      tr { // el-table__row
        background: $mainBg;
        transition: all .2s;
        span.btn {
          color: $mainColor;
          cursor: pointer;
        }
      }
      td, th {
        color: #ffff;
        border-bottom: 1px solid $mainBorder;
      }
    }
    .el-table__body tr.hover-row.current-row>td,
    .el-table__body tr.hover-row.el-table__row--striped.current-row>td,
    .el-table__body tr.hover-row.el-table__row--striped>td,
    .el-table__body tr.hover-row>td,
    .el-table__body tr:hover>td {
      background: $mainBorder;
    }
    &::before {
      background-color: $mainBorder;
    }
    .el-table__fixed-right::before {
      background-color: $mainBorder;
    }
    .el-table__fixed-right-patch {
      background-color: $mainBg
    }
    .el-table--border th, .el-table__fixed-right-patch {
      border-color: $mainBg;
    }
  }

  .el-dialog {
    background-color: $mainBg;
    border-radius: 8px;
    color: #fff;
    .el-dialog__header {
      //max-height: 50px;
      display: flex;
      border-style: solid;
      border-width: 0 0 1px 0;
      border-image: linear-gradient(to right, transparent 5%, #4f5073 35%, #6d719d 50%, #4f5073 65%, transparent 95%) 1 1;
      .el-dialog__title {
        color: $mainColor;
      }
      i {
        color: $mainColor;
      }
    }
    .el-dialog__body {
      padding: 10px 20px;
      color: #fff;
      .el-form-item {
        .el-form-item__label {
          color: #fff;
        }
        .el-select, .el-date-editor {
          width: 100%;
        }
        .el-radio {
          color: #fff;
        }
        .el-input, .el-textarea {
          &.is-disabled {
            input, textarea {
              background-color: $disabledBg;
              color: #fff;
              border-color: transparent;
            }
          }
        }
        //input, textarea {
        //  background-color: #0e0e2d;
        //  border: none;
        //  color: #fff;
        //}
        //.el-input .el-input__count .el-input__count-inner {
        //  background: transparent;
        //}
        //.el-textarea .el-input__count {
        //  background: transparent;
        //}
      }
      //input {
      //  background-color: #0e0e2d;
      //  border: none;
      //  color: #fff;
      //}
    }
  }
}

// 天地图
.tdt-control-container .tdt-iconLayers-layerTitle {
  background: rgba(0, 0, 0, .4);
}

.tdt-map-pane {
  .tdt-infowindow-content-wrapper, .tdt-infowindow-tip {
    background: #232350;
    color: #fff;
  }
  .tdt-infowindow-content-wrapper {
    border-radius: 10px;
    padding: 10px 20px;
  }
  a.tdt-infowindow-close-button {
    width: 22px;
    font: 26px/11px Tahoma,Verdana,sans-serif;
  }
}

.bf-toolbar {
  .bf-btn {
    height: 50px;
    left: -8px;
    top: -8px;
    color: #fff;
    position: relative;
    font-size: 14px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    margin-left: 10px;
    .iconfont {
      font-size: 23px;
    }
  }
}

.clear:after {
  clear: both;
  content: '';
  height: 0;
  display: block;
  overflow: hidden;
  visibility: hidden;
}

.dar-btn {
  color: $dangerBtn !important;
  padding: 0 4px;
  cursor: pointer;
}

.prim-btn {
  color: $mainColor !important;
  padding: 0 4px;
  cursor: pointer;
}

.flex-r-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-r-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-c-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flex-c-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
